from urllib.parse import quote,unquote
from urllib.parse import quote_plus,unquote_plus


url = 'https://dict.youdao.com/webtranslate?key=学习'

res = quote(url)
print(res)

print(unquote(res))